﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B35 RID: 2869
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MissionEventSync : IMessage<MissionEventSync>, IMessage, IEquatable<MissionEventSync>, IDeepCloneable<MissionEventSync>, IBufferMessage
	{
		// Token: 0x17002434 RID: 9268
		// (get) Token: 0x06008057 RID: 32855 RVA: 0x0015658B File Offset: 0x0015478B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MissionEventSync> Parser
		{
			get
			{
				return MissionEventSync._parser;
			}
		}

		// Token: 0x17002435 RID: 9269
		// (get) Token: 0x06008058 RID: 32856 RVA: 0x00156592 File Offset: 0x00154792
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MissionEventSyncReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002436 RID: 9270
		// (get) Token: 0x06008059 RID: 32857 RVA: 0x001565A4 File Offset: 0x001547A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MissionEventSync.Descriptor;
			}
		}

		// Token: 0x0600805A RID: 32858 RVA: 0x001565AB File Offset: 0x001547AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionEventSync()
		{
		}

		// Token: 0x0600805B RID: 32859 RVA: 0x001565D4 File Offset: 0x001547D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionEventSync(MissionEventSync other) : this()
		{
			this.delMissionEventIdList_ = other.delMissionEventIdList_.Clone();
			this.missionEventList_ = other.missionEventList_.Clone();
			this.finishedMissionEventIdList_ = other.finishedMissionEventIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600805C RID: 32860 RVA: 0x0015662B File Offset: 0x0015482B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionEventSync Clone()
		{
			return new MissionEventSync(this);
		}

		// Token: 0x17002437 RID: 9271
		// (get) Token: 0x0600805D RID: 32861 RVA: 0x00156633 File Offset: 0x00154833
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DelMissionEventIdList
		{
			get
			{
				return this.delMissionEventIdList_;
			}
		}

		// Token: 0x17002438 RID: 9272
		// (get) Token: 0x0600805E RID: 32862 RVA: 0x0015663B File Offset: 0x0015483B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Mission> MissionEventList
		{
			get
			{
				return this.missionEventList_;
			}
		}

		// Token: 0x17002439 RID: 9273
		// (get) Token: 0x0600805F RID: 32863 RVA: 0x00156643 File Offset: 0x00154843
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FinishedMissionEventIdList
		{
			get
			{
				return this.finishedMissionEventIdList_;
			}
		}

		// Token: 0x06008060 RID: 32864 RVA: 0x0015664B File Offset: 0x0015484B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MissionEventSync);
		}

		// Token: 0x06008061 RID: 32865 RVA: 0x0015665C File Offset: 0x0015485C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MissionEventSync other)
		{
			return other != null && (other == this || (this.delMissionEventIdList_.Equals(other.delMissionEventIdList_) && this.missionEventList_.Equals(other.missionEventList_) && this.finishedMissionEventIdList_.Equals(other.finishedMissionEventIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008062 RID: 32866 RVA: 0x001566C4 File Offset: 0x001548C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.delMissionEventIdList_.GetHashCode();
			num ^= this.missionEventList_.GetHashCode();
			num ^= this.finishedMissionEventIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008063 RID: 32867 RVA: 0x00156714 File Offset: 0x00154914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008064 RID: 32868 RVA: 0x0015671C File Offset: 0x0015491C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008065 RID: 32869 RVA: 0x00156728 File Offset: 0x00154928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.finishedMissionEventIdList_.WriteTo(ref output, MissionEventSync._repeated_finishedMissionEventIdList_codec);
			this.delMissionEventIdList_.WriteTo(ref output, MissionEventSync._repeated_delMissionEventIdList_codec);
			this.missionEventList_.WriteTo(ref output, MissionEventSync._repeated_missionEventList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008066 RID: 32870 RVA: 0x0015677C File Offset: 0x0015497C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.delMissionEventIdList_.CalculateSize(MissionEventSync._repeated_delMissionEventIdList_codec);
			num += this.missionEventList_.CalculateSize(MissionEventSync._repeated_missionEventList_codec);
			num += this.finishedMissionEventIdList_.CalculateSize(MissionEventSync._repeated_finishedMissionEventIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008067 RID: 32871 RVA: 0x001567DC File Offset: 0x001549DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MissionEventSync other)
		{
			if (other == null)
			{
				return;
			}
			this.delMissionEventIdList_.Add(other.delMissionEventIdList_);
			this.missionEventList_.Add(other.missionEventList_);
			this.finishedMissionEventIdList_.Add(other.finishedMissionEventIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008068 RID: 32872 RVA: 0x00156837 File Offset: 0x00154A37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008069 RID: 32873 RVA: 0x00156840 File Offset: 0x00154A40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 32U || num == 34U)
					{
						this.finishedMissionEventIdList_.AddEntriesFrom(ref input, MissionEventSync._repeated_finishedMissionEventIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 40U || num == 42U)
					{
						this.delMissionEventIdList_.AddEntriesFrom(ref input, MissionEventSync._repeated_delMissionEventIdList_codec);
						continue;
					}
					if (num == 122U)
					{
						this.missionEventList_.AddEntriesFrom(ref input, MissionEventSync._repeated_missionEventList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003115 RID: 12565
		private static readonly MessageParser<MissionEventSync> _parser = new MessageParser<MissionEventSync>(() => new MissionEventSync());

		// Token: 0x04003116 RID: 12566
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003117 RID: 12567
		public const int DelMissionEventIdListFieldNumber = 5;

		// Token: 0x04003118 RID: 12568
		private static readonly FieldCodec<uint> _repeated_delMissionEventIdList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04003119 RID: 12569
		private readonly RepeatedField<uint> delMissionEventIdList_ = new RepeatedField<uint>();

		// Token: 0x0400311A RID: 12570
		public const int MissionEventListFieldNumber = 15;

		// Token: 0x0400311B RID: 12571
		private static readonly FieldCodec<Mission> _repeated_missionEventList_codec = FieldCodec.ForMessage<Mission>(122U, Mission.Parser);

		// Token: 0x0400311C RID: 12572
		private readonly RepeatedField<Mission> missionEventList_ = new RepeatedField<Mission>();

		// Token: 0x0400311D RID: 12573
		public const int FinishedMissionEventIdListFieldNumber = 4;

		// Token: 0x0400311E RID: 12574
		private static readonly FieldCodec<uint> _repeated_finishedMissionEventIdList_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x0400311F RID: 12575
		private readonly RepeatedField<uint> finishedMissionEventIdList_ = new RepeatedField<uint>();
	}
}
